﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Location
{
    public interface ICountry
    {
        List<Model.Country> GetAllCountries(ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        List<Model.Country> GetCountriesThatStartsWith(string startsWith, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        Model.Country GetCountry(int id, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void InsertCountry(string countryName, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void InsertCountry(Model.Country country, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void UpdateCountry(int countryId, string countryName, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void RemoveCountry(int countryId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void RemoveCountry(string countryName, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void RemoveCountry(Model.Country country, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);
    }
}